package com.happy3w.bean.factory;

import com.happy3w.java.ext.Pair;

import java.util.stream.Stream;

public interface TypeDetector {
    default Stream<Pair<Class, Class>> detect(Class packageSampleType, Class... types) {
        String packageName = packageSampleType.getPackage().getName();
        return detect(packageName, types);
    }

    Stream<Pair<Class, Class>> detect(String packageName, Class... types);
}
